cmake_minimum_required(VERSION 3.5)

set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake" ${CMAKE_MODULE_PATH})
set(SUPERBUILD_TOPLEVEL_PROJECT myfunction)
include(ExternalProject)
include(ExternalProjectDependency)

#测试cmake函数
project(myfunction)

#测试mark_as_superbuild
mark_as_superbuild(${PROJECT_NAME}_SKIP_DIR_WITH_SPACES_CHECK:BOOL)

#测试SlicerMacroExtractRepositoryInfo
find_package(Git REQUIRED)
include(SlicerMacroExtractRepositoryInfo)
SlicerMacroExtractRepositoryInfo(
  VAR_PREFIX myfunction
  SOURCE_DIR ${Slicer_SOURCE_DIR}
  )

add_executable(A1 main.cpp)